Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable migration for enum property #582

Merged
merged 1 commit into from
Sep 1, 2024

Conversation

aaqilniz
Copy link
Contributor

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines

lib/migration.js Outdated
if (colType && colType === 'ENUM') {
if (prop.jsonSchema && prop.jsonSchema.enum) {
prop.jsonSchema.enum.forEach(item => {
enumList += `'${item}'`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need some separators like , to separate each enum value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dhmlau. You are right. Thanks for pointing out. Fixed it.

@aaqilniz aaqilniz force-pushed the fix/migration-for-enum branch from 7ec1284 to 9c29822 Compare August 20, 2024 07:33
@aaqilniz aaqilniz merged commit aa62346 into loopbackio:master Sep 1, 2024
5 checks passed
@aaqilniz aaqilniz deleted the fix/migration-for-enum branch September 1, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants